# This is a sample Python script.
from Loader import Doc, PDFLoader, TextLoader
from TXTtoJSONL import TextToList

if __name__ == '__main__':
    loader = PDFLoader(
        "D:\\Project\\NLP_Graph\\data\\COVID-19 pathophysiology_a review.pdf")
    # loader = TextLoader(text_file="../TaskManager/tes.txt")
    m_doc = loader.load()
    content, _ = m_doc.get_content()
    text_to_list = TextToList(content)
    for i in text_to_list.getList():
        print(i)
    text_to_list.toFile()
    # print(pdf_doc.toString())
